import {
  IsOptional,
  IsNotEmpty
} from 'class-validator';

export class ActivityLocationDto {
  longitude: string;
  latitude: string;
  country: string;
  state: string;
  city: string;
  street?: string;
}

export class ActivityImageDto {
  @IsNotEmpty()
  width: number = undefined;

  @IsNotEmpty()
  height: number = undefined;

  @IsNotEmpty()
  url: string = undefined;
}

export class ActivityCreateDto {
  @IsNotEmpty()
  title: string = undefined;

  @IsNotEmpty()
  description: string = undefined;

  @IsOptional()
  images?: ActivityImageDto[] = undefined;
}